package cn.ecut.model;
import java.sql.Timestamp;

public class Good {
    private int goodid;
    private String goodname;
    private Timestamp goodtime;
    private String goodexplain;
    private String goodpicture;
    private String goodstate;
//    private String fabucontact;
//    private  int fabuid;
    private Timestamp fabutime;
    private User user;

    public Good(String goodname, Timestamp goodtime, String goodexplain, String goodpicture, User user) {
        this.goodname = goodname;
        this.goodtime = goodtime;
        this.goodexplain = goodexplain;
        this.goodpicture = goodpicture;
        this.fabutime = new Timestamp(System.currentTimeMillis() );
        this.user = user;
    }

    public Good() {
    }

    @Override
    public String toString() {
        return "Good{" +
                "goodid=" + goodid +
                ", goodname='" + goodname + '\'' +
                ", goodtime=" + goodtime +
                ", goodexplain='" + goodexplain + '\'' +
                ", goodpicture='" + goodpicture + '\'' +
                ", goodstate='" + goodstate + '\'' +
                ", fabutime=" + fabutime +
                ", fabuid=" + user.getUserid() +
                ", fabucontact=" + user.getUserphone() +
                '}';
    }
    public int getGoodid() {
        return goodid;
    }

    public void setGoodid(int goodid) {
        this.goodid = goodid;
    }

    public String getGoodname() {
        return goodname;
    }

    public void setGoodname(String goodname) {
        this.goodname = goodname;
    }

    public Timestamp getGoodtime() {
        return goodtime;
    }

    public void setGoodtime(Timestamp goodtime) {
        this.goodtime = goodtime;
    }

    public String getGoodexplain() {
        return goodexplain;
    }

    public void setGoodexplain(String goodexplain) {
        this.goodexplain = goodexplain;
    }

    public String getGoodpicture() {
        return goodpicture;
    }

    public void setGoodpicture(String goodpicture) {
        this.goodpicture = goodpicture;
    }

    public String getGoodstate() {
        return goodstate;
    }

    public void setGoodstate(String goodstate) {
        this.goodstate = goodstate;
    }

    public Timestamp getFabutime() {
        return fabutime;
    }

    public void setFabutime(Timestamp fabutime) {
        this.fabutime = fabutime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
